package com.shopping.mall.core.module.company.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.sql.Timestamp;

/**
 * Company实体类
 *
 * @author zzy
 * @date 2021-09-02
 */
@Data
@TableName("company")
public class Company {

public interface insert {
}

public interface update {
}

    @ApiModelProperty(value = "id")
    @Null(groups = insert.class)
    @TableId(type = IdType.UUID)
    private String id;

    @ApiModelProperty("信息json")
    private String info;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Null(groups = insert.class)
    private Timestamp createAt;


}
